/*
 * @Description:
 * @Author: zhaolei
 * @Date: 2023-04-13 09:58:35
 */
import { COMMENT_STATUS_LIST } from '@/const/type';
export const tableOption = () => {
  return {
    ...window.$crudMixins.tableOptions,
    addBtn: false,
    editBtn: false,
    delBtn: false,
    menuWidth: 60,
    searchLabelWidth: 120,
    column: [
      {
        label: '宠物编号',
        prop: 'relativeId',
      },
      {
        label: '评论编号',
        prop: 'code',
        search: true,
        width: 240,
        overHidden: true,
      },
      {
        label: '用户昵称',
        prop: 'createBy',
        search: true,
      },
      {
        label: '用户编号',
        prop: 'creator',
        search: true,
        type: 'number',
        controls: false,
      },
      {
        label: '评论详情',
        prop: 'msg',
        overHidden: true,
      },
      {
        label: '回复评论编号',
        prop: 'parentCode',
        width: 240,
        overHidden: true,
      },
      {
        label: '评论时间',
        prop: 'createTime',
        type: 'date',
        format: 'yyyy-MM-dd HH:mm:ss',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
        search: true,
        width: 160,
        searchRange: true,
      },
      {
        label: '状态',
        prop: 'status',
        search: true,
        width: 80,
        type: 'select',
        dicData: COMMENT_STATUS_LIST,
      },
    ],
  };
};
